package com.example.tactics;

/**
 * description : 地区
 * author :kang
 * create :2021-10-22 18:01:00
 */
public enum AreaType {

    HUAIAN("淮安"),

    SUZHO("苏州"),

    WUXI("无锡");

    private String area;

    AreaType(String area) {
        this.area = area;
    }

    public static AreaType getAreaType(AreaType area) {
        if (HUAIAN.equals(area)) {
            return HUAIAN;
        } else if (SUZHO.equals(area)) {
            return SUZHO;
        } else if (WUXI.equals(area)) {
            return WUXI;
        } else {
            return null;
        }
    }
}
